//
//  WRYTopView.m
//  BaiSiBuJie
//
//  Created by wry on 16/5/3.
//  Copyright © 2016年 WRY. All rights reserved.
//

#import "WRYTopView.h"
#import "WRYThemeItem.h"
#import <UIImageView+WebCache.h>

@interface WRYTopView ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;//头像
@property (weak, nonatomic) IBOutlet UILabel *name;//昵称
@property (weak, nonatomic) IBOutlet UILabel *text;//内容
@property (weak, nonatomic) IBOutlet UILabel *time;//发帖时间

@end

@implementation WRYTopView


-(void)setItem:(WRYThemeItem *)item

{
    [super setItem:item];
    //昵称
    _name.text=item.name;
    //发帖时间
    _time.text=item.create_time;
    //内容
    _text.text=item.text;
    //头像
    [_icon sd_setImageWithURL:[NSURL URLWithString:item.profile_image]];

}



@end
